<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加下载产品</title>
<link href="${pageContext.request.contextPath }/css/styles.css" rel="stylesheet" type="text/css" />
 <link href="${pageContext.request.contextPath }/css/facebox.css" rel="stylesheet" type="text/css" />
 <link href="${pageContext.request.contextPath }/css/common.css" rel="stylesheet" type="text/css" />
 
     <!-- 日期 -->
    <script type="text/javascript" src="${pageContext.request.contextPath }/jquery/jb51.net/My97DatePicker/WdatePicker.js"></script>
    
 <script src="${pageContext.request.contextPath }/js/jquery-1.7.2.js" type="text/javascript"></script>
 <script type="text/javascript">
$("#sub").click(function(){
			
	if ($("#name").val() == "") {
		alert("产品名称不能为空。");
		return false;
	}
	if ($("#Brand").val() == "") {
		alert("产品品牌名称不能为空.");
		return false;
	}
	if ($("#Repertoire").val() == "") {
		alert("产品包装清单不能为空");
		return false;
	}
	if ($(this).val() == "") {

		alert("产品功能介绍不能为空。");
		return false;
	}
	});
	$("#Brief_Introductionerror").hide();
	$("#Nameerror").hide();
	$("#languageError").hide();
	$("#sizeError").hide();
	$("#tidyDateError").hide();
	$("#name").blur(function() {
		if ($("#name").val() == "") {
			$("#Nameerror").show();
		} else {

			$("#Nameerror").hide();
		}
	});

	$("#language").blur(function() {
		if ($("#language").val() == "") {
			$("#languageError").show();
		} else {

			$("#languageError").hide();
		}
	});
	$("#size").blur(function() {
		if ($("#size").val() == "") {
			$("#sizeError").show();
		} else {

			$("#sizeError").hide();
		}
	});
	$("#tidyDate").blur(function() {
		if ($("#tidyDate").val() == "") {
			$("#tidyDateError").show();
		} else {

			$("#tidyDateError").hide();
		}
	});
	$("#language").blur(function() {
		if ($("#language").val() == "") {
			$("#languageError").show();
		} else {

			$("#languageError").hide();
		}
	});
	$("#Brief_Introduction").blur(function() {
		if ($(this).val() == "") {

			$("#Brief_Introductionerror").show();
		} else {

			$("#Brief_Introductionerror").hide();
		}
	});
	
	$("#second").focus(function(){
		$("#ff").hide();
		
	});
});
</script>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.min.js"></script>
    <!-- MASTER STYLESHEET-->
    <link href="${pageContext.request.contextPath }/css/styles.css" rel="stylesheet" type="text/css" />
    
    <!-- LOAD TIPSY TOOLTIPS-->
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.tipsy.js"></script>
   
    <!-- LOAD CUSTOM JQUERY SCRIPTS-->
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/scripts.js"></script>	
    
	 <!-- LOAD FACEBOX -->
	<script type="text/javascript" src="${pageContext.request.contextPath }/js/facebox.js"></script>
    <link href="${pageContext.request.contextPath }/css/facebox.css" rel="stylesheet" type="text/css" />
    

    <!-- LOAD FLOT GRAPHS -->
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery.flot.pack.js"></script>

    <!--[if IE]>
     <script language="javascript" type="text/javascript" src="js/excanvas.pack.js"></script>
    <![endif]-->
    
    
    <!--[if IE 6]>
    <script src="js/pngfix.js"></script>
    <script>
        DD_belatedPNG.fix('.png_bg');
    </script>        
    <![endif]-->

	
    <!-- LOAD GRAPH JAVASCRIPT FILE-->
	<script src="${pageContext.request.contextPath }/js/graphs.js" type="text/javascript"></script>
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script src="${pageContext.request.contextPath }/js/uploadPreview.js" type="text/javascript"></script>
<style type="text/css">
#preview{width:260px;height:190px;border:1px solid #000;overflow:hidden;}
#imghead {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image);}
body { overflow-x: hidden; overflow-y: auto; } 
</style> 


</head>
<body>
	<div class="result-wrap" style=" margin-left: 10%;">
		<table width="85%">
			<tr>
				<td>产品名称</td>
				<td>产品类型</td>
				<td>产品大小</td>
				<td>软件语言</td>
				<td>整理日期</td>
				<td>运行环境</td>
				<td colspan="2">操作</td>
			</tr>
			<s:iterator value="#request.list" var="i">
			<tr>
				<td><s:property value="name"/></td>
				<s:if test="#i.Type_Name != null">
				<td><s:property value="Type_Name.firstType.Type_Name"/>-<s:property value="Type_Name.Type_Name"/></td>
				</s:if>
				<s:if test="#i.type != null">
				<td><s:property value="type.Type_Name"/></td>
				</s:if>
				<td><s:property value="size"/></td>
				<td><s:property value="language"/></td>
				<td><s:property value="tidyDate"/></td>
				<td><s:property value="jre"/></td>
				<td><a href="${pageContext.request.contextPath }/download/updateDownPage.action?id=<s:property value="id"/>">修改</a></td>
				<td><a href="${pageContext.request.contextPath }/download/deleteDown.action?id=<s:property value="id"/>">删除</a></td>
			</tr>
			</s:iterator>
		</table>
	</div>
</body>
</html>